package com.zmn.oms.dubbo.interfaces.zmn.third.tmall;

import com.zmn.common.dto2.ResponseDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author xiewenbing
 * @date:2021/07/15 10:50 上午
 * description: 天猫勤鸽保外渠道的H5页面接口，用来验证核销码等
 */
@Api(value = "天猫勤鸽保外H5接口", tags = {"天猫勤鸽保外H5接口"})
public interface TmallRemoteService {

    /**
     * 天猫勤鸽保外渠道验证核销码
     * @param orderId
     * @param code
     * @return
     */
    @ApiOperation(value = "验证核销码", response = ResponseDTO.class)
    ResponseDTO validateVerificationCode(@ApiParam(value = "订单id") @NotNull(message = "订单ID不能为Null") Long orderId,
                                         @ApiParam(value = "核销码") @NotBlank(message = "核销码不能为空") String code);

    /**
     * 天猫勤鸽保外渠道读取核销码
     * @param orderId
     * @return
     */
    @ApiOperation(value = "读取核销码", response = ResponseDTO.class)
    ResponseDTO<String> getVerificationCode(@ApiParam(value = "订单id") @NotNull(message = "订单ID不能为Null") Long orderId);
}
